
#include <iostream>
#include "Computer.h"
#include "ComputerBuilder.h"
#include "ASUSBuilder.h"
#include "LenovoBuilder.h"
#include "Director.h"

int main(int argc, char* argv[])
{
  Director director(new ASUSBuilder());
  director.set_builder(new LenovoBuilder());

  Computer* computer = director.deliver();

  std::cout << computer->Desc() << std::endl;

  // computer的使用者负责销毁computer对象
  delete computer;
  return 0;
}
